﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"              
                    xmlns:Model="clr-namespace:SQLServerHealthCheck.Model;assembly=SQLServerHealthCheck.Model"
                    x:Class="SQLServerOptimizer.PL.WPF.TracingTemp"
                    x:ClassModifier="public"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"

                    >

<!--Tracing data template starts here -->
    <DataTemplate x:Key="TracingTemp" DataType="{x:Type Model:DatabaseTrace}">
        
            <Grid Height="Auto" Width="Auto"
				 VerticalAlignment="Center"
			>
			 <Grid.RowDefinitions>
            <RowDefinition/>
            </Grid.RowDefinitions>
            
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>          
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
			
			<Image  x:Name="TraceStatusIMG"                  
                   VerticalAlignment="Center"
                    HorizontalAlignment="Left" 
                    Width="20"
                    Height="30"
                    Grid.Row="0" Grid.Column="0"
                    Source="Images/rec.png"
                    Visibility="Hidden"
                       />
					   
                <Expander 
            Header="{Binding DatabaseName}"   
            Height="Auto" 
            HorizontalAlignment="Right"
			Grid.Row="0" Grid.Column="1" 
            Margin="1,2,0,0" 
            x:Name="Tracing_expander" 
            VerticalAlignment="Center"
            Width="400"            
            IsExpanded="True"            
            
            >
                    <Grid Width="420" Height="Auto">
                        <Grid.ColumnDefinitions>                        	
                            <ColumnDefinition Width="200*" />
                            <ColumnDefinition Width="300*" />
                        </Grid.ColumnDefinitions>
                        <Label 
                    Content="SQL Instance" 
                    Height="28" 
                    HorizontalAlignment="Left" 
                    Margin="2,15,0,0" 
                    x:Name="Tracing_instance" 
                    VerticalAlignment="Top" 
                    Width="138" 
                    FontWeight="Bold" />
                        <ComboBox 
                    Grid.Column="1" 
                    Height="23"                     
                    HorizontalAlignment="Left"
                    Margin="-89.996,15,60,0"
                    Name="combobox_tracing_instance" 
                    VerticalAlignment="Top" 
                    Width="265" 
                    SelectedValuePath = "InstanceName"
                    SelectionChanged="combobox_tracing_intstance_SelectionChanged"
                    />
                        <Label 
                    Content="Database" 
                    Height="28"                     
                    HorizontalAlignment="Left"
                    Margin="2,49,0,0" 
                    x:Name="lbl_Tracing_database"
                    VerticalAlignment="Top" 
                    Width="113" FontWeight="Bold" 
                    />
                        <ComboBox 
                    Grid.Column="1" 
                    Height="23" 
                    HorizontalAlignment="Left" 
                    Margin="-90,47,60,0"
                    Name="combobox_tracing_database" 
                    VerticalAlignment="Top" 
                    Width="265"
                    DisplayMemberPath = "DatabaseName"
                    SelectedValuePath = "DatabaseName"
                    SelectionChanged="combobox_tracing_database_SelectionChanged"
                    
                    />

                        <Label 
                    Content="Start" 
                    Height="28" 
                    HorizontalAlignment="Left" 
                    Margin="2,83,0,0" 
                    x:Name="lbl_start_date" 
                    VerticalAlignment="Top" 
                    FontWeight="Bold" 
                    />
                        <Label 
                    Content="End" 
                    Height="28" 
                    HorizontalAlignment="Left"
                    Margin="2,120,0,0" 
                    x:Name="lbl_End_date" 
                    VerticalAlignment="Top" 
                    FontWeight="Bold" 
                    />
                        <toolkit:DatePicker
                    x:Name="calendar_Startdate" 
                    Grid.Column="1"                  
                    Margin="-170,84,155,0"  VerticalAlignment="Top" 
                   	Width="110" 
                    />
                        <toolkit:DatePicker                  
                    x:Name="calendar_Enddate" 
                    Grid.Column="1"                 
                    Margin="-170,118,154,78" 
                    Width="110"     
                    VerticalAlignment="Top"
                    />
                        <ComboBox 
                    Background="AliceBlue" 
                    x:Name="Time_StartTime_Hour" 
                    Grid.Column="1"                 
                    Margin="-165,85.277,150,0"
                    Width="64"       
                    Height="20"
					HorizontalAlignment="Right" 
					VerticalAlignment="Top"   
                    
                    >
                            <sys:String>00</sys:String>
                            <sys:String>01</sys:String>
                            <sys:String>02</sys:String>
                            <sys:String>03</sys:String>
                            <sys:String>04</sys:String>
                            <sys:String>05</sys:String>
                            <sys:String>06</sys:String>
                            <sys:String>07</sys:String>
                            <sys:String>08</sys:String>
                            <sys:String>09</sys:String>
                            <sys:String>10</sys:String>
                            <sys:String>11</sys:String>
                            <sys:String>12</sys:String>
                            <sys:String>13</sys:String>
                            <sys:String>14</sys:String>
                            <sys:String>15</sys:String>
                            <sys:String>16</sys:String>
                            <sys:String>17</sys:String>
                            <sys:String>18</sys:String>
                            <sys:String>19</sys:String>
                            <sys:String>20</sys:String>
                            <sys:String>21</sys:String>
                            <sys:String>22</sys:String>
                            <sys:String>23</sys:String>
                        </ComboBox>

						
                        <ComboBox 
                                  x:Name="Time_StartTime_Min"
                                  Grid.Column="1" 
                                  HorizontalAlignment="Right" 
                                  Margin="0,84,80,0" 
                                  Width="58" 
                                  MaxHeight="30" 
                                  Height="21.277" 
                                  VerticalAlignment="Top"
                                  >
                            <sys:String>00</sys:String>
                            <sys:String>01</sys:String>
                            <sys:String>02</sys:String>
                            <sys:String>03</sys:String>
                            <sys:String>04</sys:String>
                            <sys:String>05</sys:String>
                            <sys:String>06</sys:String>
                            <sys:String>07</sys:String>
                            <sys:String>08</sys:String>
                            <sys:String>09</sys:String>
                            <sys:String>10</sys:String>
                            <sys:String>11</sys:String>
                            <sys:String>12</sys:String>
                            <sys:String>13</sys:String>
                            <sys:String>14</sys:String>
                            <sys:String>15</sys:String>
                            <sys:String>16</sys:String>
                            <sys:String>17</sys:String>
                            <sys:String>18</sys:String>
                            <sys:String>19</sys:String>
                            <sys:String>20</sys:String>
                            <sys:String>21</sys:String>
                            <sys:String>22</sys:String>
                            <sys:String>23</sys:String>
                            <sys:String>24</sys:String>
                            <sys:String>25</sys:String>
                            <sys:String>26</sys:String>
                            <sys:String>27</sys:String>
                            <sys:String>28</sys:String>
                            <sys:String>29</sys:String>
                            <sys:String>30</sys:String>
                            <sys:String>31</sys:String>
                            <sys:String>32</sys:String>
                            <sys:String>33</sys:String>
                            <sys:String>34</sys:String>
                            <sys:String>35</sys:String>
                            <sys:String>36</sys:String>
                            <sys:String>37</sys:String>
                            <sys:String>38</sys:String>
                            <sys:String>39</sys:String>
                            <sys:String>40</sys:String>
                            <sys:String>41</sys:String>
                            <sys:String>42</sys:String>
                            <sys:String>43</sys:String>
                            <sys:String>44</sys:String>
                            <sys:String>45</sys:String>
                            <sys:String>46</sys:String>
                            <sys:String>47</sys:String>
                            <sys:String>48</sys:String>
                            <sys:String>49</sys:String>
                            <sys:String>50</sys:String>
                            <sys:String>51</sys:String>
                            <sys:String>52</sys:String>
                            <sys:String>53</sys:String>
                            <sys:String>54</sys:String>
                            <sys:String>55</sys:String>
                            <sys:String>56</sys:String>
                            <sys:String>57</sys:String>
                            <sys:String>58</sys:String>
                            <sys:String>59</sys:String>
                        </ComboBox>

                        <ComboBox 
                            Grid.Column="1" 
                            HorizontalAlignment="Right" 
                            Margin="0,0,80,78" 
                            VerticalAlignment="Bottom" 
                            Width="58"
                            MaxHeight="30"
                            x:Name="Time_EndTime_Min"
                            >
                            <sys:String>00</sys:String>
                            <sys:String>01</sys:String>
                            <sys:String>02</sys:String>
                            <sys:String>03</sys:String>
                            <sys:String>04</sys:String>
                            <sys:String>05</sys:String>
                            <sys:String>06</sys:String>
                            <sys:String>07</sys:String>
                            <sys:String>08</sys:String>
                            <sys:String>09</sys:String>
                            <sys:String>10</sys:String>
                            <sys:String>11</sys:String>
                            <sys:String>12</sys:String>
                            <sys:String>13</sys:String>
                            <sys:String>14</sys:String>
                            <sys:String>15</sys:String>
                            <sys:String>16</sys:String>
                            <sys:String>17</sys:String>
                            <sys:String>18</sys:String>
                            <sys:String>19</sys:String>
                            <sys:String>20</sys:String>
                            <sys:String>21</sys:String>
                            <sys:String>22</sys:String>
                            <sys:String>23</sys:String>
                            <sys:String>24</sys:String>
                            <sys:String>25</sys:String>
                            <sys:String>26</sys:String>
                            <sys:String>27</sys:String>
                            <sys:String>28</sys:String>
                            <sys:String>29</sys:String>
                            <sys:String>30</sys:String>
                            <sys:String>31</sys:String>
                            <sys:String>32</sys:String>
                            <sys:String>33</sys:String>
                            <sys:String>34</sys:String>
                            <sys:String>35</sys:String>
                            <sys:String>36</sys:String>
                            <sys:String>37</sys:String>
                            <sys:String>38</sys:String>
                            <sys:String>39</sys:String>
                            <sys:String>40</sys:String>
                            <sys:String>41</sys:String>
                            <sys:String>42</sys:String>
                            <sys:String>43</sys:String>
                            <sys:String>44</sys:String>
                            <sys:String>45</sys:String>
                            <sys:String>46</sys:String>
                            <sys:String>47</sys:String>
                            <sys:String>48</sys:String>
                            <sys:String>49</sys:String>
                            <sys:String>50</sys:String>
                            <sys:String>51</sys:String>
                            <sys:String>52</sys:String>
                            <sys:String>53</sys:String>
                            <sys:String>54</sys:String>
                            <sys:String>55</sys:String>
                            <sys:String>56</sys:String>
                            <sys:String>57</sys:String>
                            <sys:String>58</sys:String>
                            <sys:String>59</sys:String>
                        </ComboBox>
                        <ComboBox
                    Background="AliceBlue" 
                    x:Name="Time_EndTime_Hour" 
                    Grid.Column="1"                 
                    Margin="-250,120,150,78"
                    Width="64"
                    MaxHeight="30" HorizontalAlignment="Right"
                       >
                            <sys:String>00</sys:String>
                            <sys:String>01</sys:String>
                            <sys:String>02</sys:String>
                            <sys:String>03</sys:String>
                            <sys:String>04</sys:String>
                            <sys:String>05</sys:String>
                            <sys:String>06</sys:String>
                            <sys:String>07</sys:String>
                            <sys:String>08</sys:String>
                            <sys:String>09</sys:String>
                            <sys:String>10</sys:String>
                            <sys:String>11</sys:String>
                            <sys:String>12</sys:String>
                            <sys:String>13</sys:String>
                            <sys:String>14</sys:String>
                            <sys:String>15</sys:String>
                            <sys:String>16</sys:String>
                            <sys:String>17</sys:String>
                            <sys:String>18</sys:String>
                            <sys:String>19</sys:String>
                            <sys:String>20</sys:String>
                            <sys:String>21</sys:String>
                            <sys:String>22</sys:String>
                            <sys:String>23</sys:String>

                        </ComboBox>
                        
                        <Button 
                            x:Name="sceduleButton"
                            Style="{DynamicResource GlassButton}"
                            Margin="70,0,0,32.723" 
                            VerticalAlignment="Bottom" 
                            HorizontalAlignment="Left" 
                            Width="37"
							Height="34"
                            Click="btnScheduleTrace"
                            ToolTip="Schedule Trace"
                            Cursor="Arrow"
                             >
                        	
							<Image x:Name="image_capturetrace" Source="Images/rec.png" Height="32" Width="42"/>
                        	</Button>
                        <Label
                            x:Name="traceProgressupdate"
                            Margin="108,0,0,32.723" 
                            Grid.ColumnSpan="2"
                            HorizontalAlignment="Left"
                            VerticalAlignment="Bottom"
                            Content=""
                            Foreground="Green"
                            FontSize="10"
                            >
                        </Label>

                    </Grid>

                </Expander>
  						
    			</Grid>

</DataTemplate>
</ResourceDictionary>